org.eclipse.vtp.framework.common.commands
Class ControllerCommand

java.lang.Object
  extended by org.eclipse.vtp.framework.common.commands.ControllerCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
ExitCommand, ForwardCommand, IncludeCommand

public abstract class ControllerCommand
extends java.lang.Object
implements ICommand

Base class for forward, include, and exit commands.

Author:
Lonnie Pryor

Constructor Summary
ControllerCommand()
           
 
Method Summary
 java.lang.Object accept(ICommandVisitor visitor)
          Attempts to invoke an implementation-dependent visit method on the supplied visitor, calling ICommandVisitor.visitUnknown(ICommand) if such a method is not available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.framework.spi.ICommand
exportContents, importContents
 

Constructor Detail

ControllerCommand

public ControllerCommand()
Method Detail

accept

public final java.lang.Object accept(ICommandVisitor visitor)
                              throws java.lang.NullPointerException
Description copied from interface: ICommand
Attempts to invoke an implementation-dependent visit method on the supplied visitor, calling ICommandVisitor.visitUnknown(ICommand) if such a method is not available.

Specified by:
accept in interface ICommand
Parameters:
visitor - The visitor to accept.
Returns:
The value returned by the visitor's visit method.
Throws:
java.lang.NullPointerException - If the supplied visitor is null.